{\rtf1\ansi\ansicpg936\cocoartf1344\cocoasubrtf720
{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;\f1\fnil\fcharset134 STHeitiSC-Light;\f2\fswiss\fcharset0 Helvetica;
}
{\colortbl;\red255\green255\blue255;\red0\green116\blue0;\red164\green8\blue0;\red170\green13\blue145;
\red92\green38\blue153;\red28\green0\blue207;\red196\green26\blue22;\red46\green13\blue110;\red63\green110\blue116;
}
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\deftab866
\pard\tx866\pardeftab866\pardirnatural

\f0\fs36 \cf2 \CocoaLigature0 //
\f1 \'cd\'a8\'b9\'fd\'ce\'bb\'d6\'c3\'d5\'d2\'a3\'ad\'a3\'ad\'b6\'d4\'cf\'f3
\f0 \cf0 \
\cf2 /*\
 1.
\f1 \'cd\'a8\'b9\'fd\'b5\'e3\'a3\'ad\'a3\'ad\'d5\'d2\'b6\'d4\'cf\'f3\'a3\'a8\'c0\'fb\'d3\'c3\'d7\'f8\'b1\'ea
\f0  
\f1 \'d0\'d0
\f0  i 
\f1 \'a3\'bd
\f0  point.y/height
\f1 \'a3\'ad\'a3\'ad\'c1\'d0
\f0  j 
\f1 \'a3\'bd
\f0  point.x/width
\f1 \'a3\'a9
\f0 \
 2.
\f1 \'cd\'a8\'b9\'fd
\f0 tag
\f1 \'d6\'b5\'a3\'ad\'a3\'ad\'d5\'d2\'b6\'d4\'cf\'f3
\f0 \
 3.
\f1 \'cd\'a8\'b9\'fd\'b1\'e9\'c0\'fa\'a3\'ad\'a3\'ad\'d5\'d2\'b6\'d4\'cf\'f3
\f0 \
\
 */\cf0 \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural

\f2\fs24 \cf0 \CocoaLigature1 \
\pard\tx866\pardeftab866\pardirnatural

\f0\fs36 \cf0 \CocoaLigature0     \cf2 /*\
     1.
\f1 \'ca\'b2\'c3\'b4\'ca\'c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\'f7
\f0 \
     //
\f1 \'c0\'b8\'c9\'cf\'b5\'c4\'b6\'ab\'ce\'f7\'b9\'e9\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'c0\'b4\'c9\'e8\'d6\'c3
\f0 \
     UITabBarController 
\f1 \'b1\'ea\'c7\'a9\'c0\'b8\'bf\'d8\'d6\'c6\'c6\'f7
\f0 \
     UITabBar           
\f1 \'b1\'ea\'c7\'a9\'c0\'b8
\f0 \
     UITabBarItem       
\f1 \'b1\'ea\'c7\'a9\'c0\'b8\'cf\'ee
\f0 \
     \
     UINavigationController 
\f1 \'b5\'bc\'ba\'bd\'bf\'d8\'d6\'c6\'c6\'f7
\f0 \
     UINavigationBar        
\f1 \'b5\'bc\'ba\'bd\'c0\'b8
\f0 \
     UINavigationItem       
\f1 \'b5\'bc\'ba\'bd\'cf\'ee\'a3\'af\'b5\'bc\'ba\'bd\'b0\'b4\'c5\'a5
\f0 \
     */\cf0 \
\cf2 /*\
    \cf3 //
\f1 \'b1\'ea\'c7\'a9\'c0\'b8\'a3\'ad\'cf\'ee\'a3\'ad\'ca\'c7\'cd\'a8\'b9\'fd\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'b5\'c4\'ca\'f4\'d0\'d4\'c0\'b4\'c9\'e8\'d6\'c3\'b5\'c4\'a3\'ac\'ba\'cd\'b5\'bc\'ba\'bd\'c0\'b8\'b0\'b4\'c5\'a5\'c9\'e8\'d6\'c3\'c0\'e0\'cb\'c6
\f0 \
\cf2     //
\f1 \'b5\'da\'d2\'bb\'d6\'d6
\f0 \
    FirstViewController *firstVC = [[FirstViewController alloc]init];\
    //
\f1 \'c9\'e8\'d6\'c3\'b1\'ea\'c7\'a9\'c0\'b8\'cf\'ee\'b5\'c4\'b1\'ea\'cc\'e2
\f0 \
    firstVC.tabBarItem.title = @"
\f1 \'b1\'ea\'c7\'a9\'c0\'b8\'cf\'ee\'b1\'ea\'cc\'e2
\f0 ";\
    //
\f1 \'c9\'e8\'d6\'c3\'b1\'ea\'c7\'a9\'c0\'b8\'cf\'ee\'b5\'c4\'cd\'bc\'c6\'ac
\f0 \
    firstVC.tabBarItem.image = [UIImage imageNamed:@"tab_0"];\
    //
\f1 \'c9\'e8\'d6\'c3\'b1\'ea\'c7\'a9\'c0\'b8\'cf\'ee\'d1\'a1\'d6\'d0\'ca\'b1\'b5\'c4\'cd\'bc\'c6\'ac
\f0 \
    firstVC.tabBarItem.selectedImage = [UIImage imageNamed:@"tab_s"];\
    //
\f1 \'b5\'da\'b6\'fe\'d6\'d6
\f0 \
    SecondViewController *secondVC = [[SecondViewController alloc]init];\
    //
\f1 \'c9\'e8\'d6\'c3\'cf\'b5\'cd\'b3\'d1\'f9\'ca\'bd\'b5\'c4\'b1\'ea\'c7\'a9\'c0\'b8\'cf\'ee
\f0 \
    secondVC.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemContacts tag:0];\
    //
\f1 \'b5\'da\'c8\'fd\'d6\'d6
\f0 \
    //
\f1 \'b5\'da\'d2\'bb\'b8\'f6\'b2\'ce\'ca\'fd
\f0  
\f1 \'b1\'ea\'c7\'a9\'c0\'b8\'cf\'ee\'b5\'c4\'b1\'ea\'cc\'e2
\f0 \
    //
\f1 \'b5\'da\'b6\'fe\'b8\'f6\'b2\'ce\'ca\'fd
\f0  
\f1 \'b1\'ea\'c7\'a9\'c0\'b8\'b5\'c4\'cd\'bc\'c6\'ac
\f0 \
    //
\f1 \'b5\'da\'c8\'fd\'b8\'f6\'b2\'ce\'ca\'fd
\f0  
\f1 \'b1\'ea\'c7\'a9\'c0\'b8\'d1\'a1\'d6\'d0\'ca\'b1\'b5\'c4\'cd\'bc\'c6\'ac
\f0 \
    ThirdViewController *thirdVC = [[ThirdViewController alloc]init];\
    thirdVC.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"
\f1 \'cc\'e1\'c4\'aa
\f0 " image:[UIImage imageNamed:@"tab_0"] selectedImage:[UIImage imageNamed:@"tab_s"]];\
    FiveViewController *fiveVC = [[FiveViewController alloc]init];\
    fiveVC.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemDownloads tag:2];\
    //
\f1 \'c9\'e8\'d6\'c3\'bb\'d5\'b1\'ea
\f0   
\f1 \'cc\'e1\'ca\'be\'ca\'fd\'d7\'d6
\f0   
\f1 \'cb\'fb\'ca\'c7\'d7\'d6\'b7\'fb\'b4\'ae\'c0\'e0\'d0\'cd
\f0 \
    fiveVC.tabBarItem.badgeValue = @"5";\
    //
\f1 \'bc\'c7\'d7\'a1\'ca\'c7\'a3\'ad\'a3\'ad\'ce\'de\'b7\'a8\'b8\'c4\'b1\'e4\'cf\'b5\'cd\'b3\'a3\'ad\'a3\'ad\'b5\'c4\'b1\'ea\'cc\'e2\'b5\'c4\'a3\'a8\'d2\'b2\'bc\'b4\'ce\'de\'b7\'a8\'b8\'c4\'b1\'e4\'c4\'b3\'d0\'a9\'cf\'b5\'cd\'b3\'d3\'b2\'d0\'d4\'b9\'e6\'b6\'a8\'b5\'c4\'b6\'ab\'ce\'f7\'a3\'a9
\f0 \
    fiveVC.title = @"
\f1 \'d0\'a1\'c5\'da
\f0 ";\
    //
\f1 \'b5\'da\'d2\'bb\'d6\'d6\'c9\'e8\'d6\'c3\'c4\'ac\'c8\'cf\'d1\'a1\'d6\'d0\'b7\'bd\'ca\'bd
\f0   //
\f1 \'d7\'a2\'d2\'e2\'d2\'bb\'b5\'e3\'d2\'aa\'d4\'da
\f0  tabBarController.viewControllers
\f1 \'b8\'b3\'d6\'b5\'d6\'ae\'ba\'f3\'c9\'e8\'d6\'c3\'b2\'c5\'d3\'d0\'d0\'a7\'b9\'fb\'a3\'ac\'b7\'f1\'d4\'f2\'ce\'de\'d0\'a7
\f0 \
    //tabBarController.selectedIndex = 2;\
    //
\f1 \cf3 \'bc\'cc\'b3\'d0\'d3\'da
\f0 UIViewController
\f1 \'cb\'f9\'d2\'d4\'d2\'b2\'bf\'c9\'d2\'d4\'d3\'c3\'c4\'a3\'cc\'ac\'bb\'af\'cd\'c6\'b3\'f6\'a3\'ac\'b7\'b5\'bb\'d8
\f0 present  dismiss\
\cf2     //tabBarController.viewControllers = viewControllers;\
    //
\f1 \'bd\'ab
\f0 tabBarController
\f1 \'c9\'e8\'d6\'c3\'ce\'aa
\f0 window
\f1 \'b5\'c4\'b8\'f9\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'a1\'a3
\f0 \
    self.window.rootViewController = tabBarController;\
\
\
\cf0 - (\cf4 void\cf0 )createTabBarControllerSecond\
\{\
    \cf5 NSArray\cf0  * vcTitle = \cf6 @[\cf7 @"First"\cf0 ,\cf7 @"Second"\cf0 ,\cf7 @"Third"\cf0 ,\cf7 @"Four"\cf0 ,\cf7 @"Five"\cf6 ]\cf0  ;\
    \
    \cf5 NSArray\cf0  * imageArray = \cf6 @[\cf7 @"tab_0"\cf0 ,\cf7 @""\cf0 ,\cf7 @"tab_1"\cf0 ,\cf7 @"tab_2"\cf6 ]\cf0  ;\
    \cf5 NSArray\cf0  * titleArray = \cf6 @[\cf7 @"
\f1 \'ba\'a3\'d4\'f4\'c8\'f0\'d7\'c8
\f0 "\cf0 ,\cf7 @""\cf0 ,\cf7 @"
\f1 \'cc\'e1\'c4\'aa
\f0 "\cf0 ,\cf7 @"
\f1 \'c4\'be\'c4\'be
\f0 "\cf6 ]\cf0  ;\
    \
    \cf5 NSMutableArray\cf0  * viewControllers = [\cf5 NSMutableArray\cf0  \cf8 array\cf0 ] ;\
    \cf4 for\cf0  (\cf4 int\cf0  i = \cf6 0\cf0  ; i < \cf6 5\cf0  ; i++)\
    \{\
        \cf5 NSString\cf0  * className = [\cf5 NSString\cf0  \cf8 stringWithFormat\cf0 :\cf7 @"%@ViewController"\cf0 ,vcTitle[i]] ;\
        \
        Class myClass = \cf8 NSClassFromString\cf0 (className) ;\
        \
        \cf5 UIViewController\cf0  * vc = [[myClass \cf8 alloc\cf0 ] \cf8 init\cf0 ] ;\
        \
        \cf5 UINavigationController\cf0  * navi = [[\cf5 UINavigationController\cf0  \cf8 alloc\cf0 ] \cf8 initWithRootViewController\cf0 :vc] ;\
        \cf4 if\cf0  (i == \cf6 1\cf0 )\
        \{\
            vc.\cf5 tabBarItem\cf0  = [[\cf5 UITabBarItem\cf0  \cf8 alloc\cf0 ] \cf8 initWithTabBarSystemItem\cf0 :\cf8 UITabBarSystemItemContacts\cf0  \cf8 tag\cf0 :\cf6 0\cf0 ] ;\
        \}\
        \cf4 else\cf0  \cf4 if\cf0  (i == \cf6 4\cf0 )\
        \{\
            vc.\cf5 tabBarItem\cf0  = [[\cf5 UITabBarItem\cf0  \cf8 alloc\cf0 ] \cf8 initWithTabBarSystemItem\cf0 :\cf8 UITabBarSystemItemDownloads\cf0  \cf8 tag\cf0 :\cf6 1\cf0 ] ;\
        \}\
        \cf4 else\cf0 \
        \{\
            vc.\cf5 tabBarItem\cf0  = [[\cf5 UITabBarItem\cf0  \cf8 alloc\cf0 ] \cf8 initWithTitle\cf0 :titleArray[i] \cf8 image\cf0 :[\cf5 UIImage\cf0  \cf8 imageNamed\cf0 :imageArray[i]] \cf8 selectedImage\cf0 :[\cf5 UIImage\cf0  \cf8 imageNamed\cf0 :\cf7 @"tab_s"\cf0 ]] ;\
        \}\
        [viewControllers \cf8 addObject\cf0 :navi] ;\
    \}\
    \
    \cf5 UITabBarController\cf0  * tabBarController =[[ \cf5 UITabBarController\cf0  \cf8 alloc\cf0 ] \cf8 init\cf0 ] ;\
    tabBarController.\cf5 viewControllers\cf0  = viewControllers ;\
    \
    \cf4 self\cf0 .\cf9 window\cf0 .\cf5 rootViewController\cf0  = tabBarController ;\
\
\}\
\
                vcc10 = vcArr[\cf6 0\cf0 ];\
                \cf2 //
\f1 \'c9\'e8\'d6\'c3\'b1\'ea\'c7\'a9\'c0\'b8\'cf\'ee\'b5\'c4\'b1\'ea\'cc\'e2
\f0 \cf0 \
                vcc10.\cf5 tabBarItem\cf0 .\cf5 title\cf0  = \cf7 @"
\f1 \'b1\'ea\'c7\'a9\'c0\'b8\'cf\'ee\'b1\'ea\'cc\'e2
\f0 "\cf0 ;\
                \cf2 //
\f1 \'c9\'e8\'d6\'c3\'b1\'ea\'c7\'a9\'c0\'b8\'cf\'ee\'b5\'c4\'cd\'bc\'c6\'ac
\f0 \cf0 \
                vcc10.\cf5 tabBarItem\cf0 .\cf5 image\cf0  = [\cf5 UIImage\cf0  \cf8 imageNamed\cf0 :\cf7 @"tab_0"\cf0 ];\
                \cf2 //
\f1 \'c9\'e8\'d6\'c3\'b1\'ea\'c7\'a9\'c0\'b8\'cf\'ee\'d1\'a1\'d6\'d0\'ca\'b1\'b5\'c4\'cd\'bc\'c6\'ac
\f0 \cf0 \
                vcc10.\cf5 tabBarItem\cf0 .\cf5 selectedImage\cf0  = [\cf5 UIImage\cf0  \cf8 imageNamed\cf0 :\cf7 @"tab_s"\cf0 ];\
}